package demo.hw;

/**
 * 输入
 * 0xA
 * 0xAA
 * 输出
 * 10
 * 170
 *
 * @author taqo
 * @date 2021/5/25
 */
public class _进制转换 {
    public static void main(String[] args) {
        String a[] = {"0xA","0xAA"};
        for (String s : a) {
            Integer decode = Integer.decode(s);
            System.out.println(decode);
        }
        System.out.println(Integer.valueOf("Aa",16));
    }
}
